﻿using System;
using System.Collections.Generic;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Xml.Linq;

namespace Components
{
    public class EmailComponent:WorkflowComponentBase
    {
        public EmailComponent():base()
        {
            this.ComponentName = "Email";
            this.Description = "Send email via outlook or SMTP";
            this.ComponentIconName = "Envelop.png";
            this.ComponentImageName = "Envelop.png";

            this._Instruction=new EmailInstruction(
                this.ComponentID, Guid.NewGuid(),
                false, string.Empty, string.Empty, string.Empty, string.Empty,
                false, string.Empty, string.Empty, false, new List<string>(), string.Empty);
            this._Output=new EmailOutput(
                this.ComponentID, Guid.NewGuid());
        }

        #region Overrides of WorkflowComponentBase

        private EmailInstruction _Instruction;
        public override InstructionBase Instruction
        {
            get
            {
                return _Instruction;
            }
            set
            {
                _Instruction = (EmailInstruction) value;
            }
        }

        private EmailOutput _Output;
        public override ResultBase Output
        {
            get
            {
                return _Output;
            }
            set
            {
                _Output = (EmailOutput) value;
            }
        }
        #endregion
    }
}
